﻿// Decompiled with JetBrains decompiler
// Type: System.Web.Razor.Tokenizer.XmlHelpers
// Assembly: System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// MVID: 682513D6-F37E-48AC-9909-F3EE103CFF14
// Assembly location: D:\Project\Idea\无人机外网\uav\客户端工程\排查工具\bin\Release\System.Web.Razor.dll

namespace System.Web.Razor.Tokenizer
{
  internal static class XmlHelpers
  {
    public static bool IsXmlNameStartChar(char chr) => char.IsLetter(chr) || chr == ':' || (chr == '_' || XmlHelpers.IsInRange(chr, 192, 214)) || (XmlHelpers.IsInRange(chr, 216, 246) || XmlHelpers.IsInRange(chr, 248, 767) || (XmlHelpers.IsInRange(chr, 880, 893) || XmlHelpers.IsInRange(chr, 895, 8191))) || (XmlHelpers.IsInRange(chr, 8204, 8205) || XmlHelpers.IsInRange(chr, 8304, 8591) || (XmlHelpers.IsInRange(chr, 11264, 12271) || XmlHelpers.IsInRange(chr, 12289, 55295)) || (XmlHelpers.IsInRange(chr, 63744, 64975) || XmlHelpers.IsInRange(chr, 65008, 65533))) || XmlHelpers.IsInRange(chr, 65536, 983039);

    public static bool IsXmlNameChar(char chr) => char.IsDigit(chr) || XmlHelpers.IsXmlNameStartChar(chr) || (chr == '-' || chr == '.') || (chr == '·' || XmlHelpers.IsInRange(chr, 768, 879)) || XmlHelpers.IsInRange(chr, 8255, 8256);

    public static bool IsInRange(char chr, int low, int high) => (int) chr >= low && (int) chr <= high;
  }
}
